Fix incompatibility between <stdatomic.h> and <atomic>
authorAndroid Tools Maintainers <android-tools-devel@lists.alioth.debian.org>
Tue, 22 Mar 2022 22:50:07 +0000 (22:50 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Tue, 22 Mar 2022 22:50:07 +0000 (22:50 +0000)
commit6bf2eda7d0261864a6bc6e0fa684469efb986190
treed0ccf1ea130bcb0eb6064a6449e27ee42b94781e
parent65167130dc7f0cf44f7c55ed1a555c7d68acd436
Fix incompatibility between <stdatomic.h> and <atomic>

Bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60932
Bug: https://reviews.llvm.org/D45470

This 2 headers combined will cause errors for both GCC and Clang. This patch
makes sure only one of them is present at any time.

Gbp-Pq: Topic system/core
Gbp-Pq: Name stdatomic.patch
system/core/libcutils/include/cutils/atomic.h
system/core/libcutils/include/cutils/trace.h
system/core/liblog/logger.h